CALL 0_header.cmd
ECHO 1. Connect to a Server
ECHO 0. Return to Main Menu
ECHO.

if defined cookie goto :start

set /p menu="%choice_text%"
if "%menu%" == "1" goto :start
if "%menu%" == "0" goto :end


:start
CALL 0_header.cmd
ECHO What server are you trying to connect to? e.g., ghost, myserv, ACME-FS
ECHO.
SET /P SERVER=type the name of server, then press ENTER: 

REM ===================== Choices for Image Server =====================
CALL 0_header.cmd
if defined cookie goto :auto
ECHO 1. Connect to %SERVER% automatically using default settings.
ECHO 2. Connect to %SERVER% manually.
ECHO 0. Go back to Main Menu.
ECHO.
set /p menu="%choice_text%"
if "%menu%" == "2" goto :manual
if "%menu%" == "1" goto :auto
if "%menu%" == "0" goto :end

:auto
CALL 3_connect_auto.cmd
goto :end

:manual
CALL 3_connect_manual.cmd
goto :end

:end
exit
